/**
 * 
 */
package com.antilia.infomaresme.pages.testmaps;

import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.panel.Panel;

/**
 * @author Ernesto
 *
 */
public class TestPanel extends Panel {

	private static final long serialVersionUID = 1L;

	private WebMarkupContainer container;
	/**
	 * @param id
	 */
	public TestPanel(String id) {
		super(id);
		AjaxLink<Void> link  = new AjaxLink<Void>("link") {
			
			private static final long serialVersionUID = 1L;

			@Override
			public void onClick(AjaxRequestTarget target) {
				container.setVisible(true);
				target.add(container);
			}
		};
		add(link);
		container = new WebMarkupContainer("container");
		container.setVisible(false);
		container.setOutputMarkupPlaceholderTag(true);
		container.add(new GMap3("map"));
		add(container);
		
	} 
}
